package proxypattern.dynamicproxy;

public class Student implements Person {
    private String name ;

    public Student(String name) {
        this.name = name;
    }


    @Override
    public void giveMoney() {
        try {
            //模拟花钱时间1秒钟
            Thread.sleep(1000);
        }catch (InterruptedException e){
            e.printStackTrace();
        }
        System.out.println(name+"上交班费50元");
    }
}
